<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of horoscope
 *
 * @author Gidaff_01
 */
class horoscope extends Doggy_Flirt_FrontEnd_Controller{
    //put your code here
    function Horoscope() {
        parent::Doggy_Flirt_FrontEnd_Controller();
        $this->load->model('Doggy_admin_m');
        $this->load->model('Home_m');
        $this->load->helper('date');
        $this->_data['erreur'] = "";
    }
    
    function detail_horoscope($id){
        $query = $this->Doggy_admin_m->get_horoscope_by_id($id);
        $this->_data['horoscope_detail'] = $query;
        $this->display_view('horoscope/detail_horoscope');
    }

    function list_horoscope(){
        $this->_data['query_horoscope'] = $this->Home_m->list_horoscope();
        $this->_data['page_title'] = "Liste de Horoscope";
        $this->display_view('horoscope/list_horoscope');
    }
}
?>
